package PangModel;

import java.awt.*;
import java.util.ArrayList;

/**
 * Created by loren on 10.05.2015.
 */
public class StickyHook extends Weapon
{
    @Override
    public ArrayList<Bullet> shoot(Point p, boolean isThereBulletsOnAir)
    {
        ArrayList<Bullet> bullets = new ArrayList<Bullet>();
        if(isThereBulletsOnAir)
            return bullets;

        StickyRope bullet= new StickyRope();
        bullet.setCoordinates(p);
        bullet.setDirection(GameObject.ROPE_DEFAULT_DIRECTION);

        bullets.add(bullet);
        return bullets;
    }
}
